package com.woniu.liuzhougov.authorityControl.pojo;

import com.woniu.liuzhougov.authorityControl.verification.AddRights;
import com.woniu.liuzhougov.authorityControl.verification.EditRights;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class Rights {
    @NotNull(message = "权限id不能为空!", groups = {EditRights.class})
    private Integer rightsId;

    @NotBlank(message = "资源名称不能为空!", groups = {AddRights.class, EditRights.class})
    private String rightsName;

    @NotNull(message = "父节点id不能为空!", groups = {AddRights.class})
    private Integer parentId;

    private String rightsDescription;

    private String perms;

    public Integer getRightsId() {
        return rightsId;
    }

    public void setRightsId(Integer rightsId) {
        this.rightsId = rightsId;
    }

    public String getRightsName() {
        return rightsName;
    }

    public void setRightsName(String rightsName) {
        this.rightsName = rightsName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getRightsDescription() {
        return rightsDescription;
    }

    public void setRightsDescription(String rightsDescription) {
        this.rightsDescription = rightsDescription;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }
}